using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace msgExchange
{
    public partial class Form2 : Form
    {
        CSysSettingMananger settingManager_ = null;
        public Form2(CSysSettingMananger s)
        {
            InitializeComponent();
            settingManager_ = s;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            settingManager_.setting_.pwd_= textBox2.Text;
        }

        private void Form2_Load(object sender, EventArgs e)
        {
            textBox1.Text = settingManager_.setting_.account_;
            checkBox1.Checked = settingManager_.getPWDFlag();
            if (checkBox1.Checked)
            {
                textBox2.Text = settingManager_.getPWD();
            }
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            settingManager_.setPWDFlag((checkBox1.Checked));
        }
    }
}